<template>
  <div>
    <h2>Count组件</h2>
    <button @click="count++">更新</button>
    <p>{{count}}</p>
    <button @click="$destroy()">卸载</button>
    <button v-role="'superAdmin'">新增</button>
    <button v-role="'superAdmin'">删除</button>
    <button v-role="'admin'" @click="count--">修改</button>
    <p>{{count}}</p>
  </div>
</template>

<script>
export default {
  name: "Count",
  data() {
    return {
      count:0
    };
  },
};
</script>

<style>
</style>